<?php $form=$this->beginWidget('booster.widgets.TbActiveForm',array(
	'id'=>Yii::app()->controller->id.'-form',
    'enableAjaxValidation' => false,
    'type' => 'horizontal',
    'htmlOptions' => array(
        'class' => 'form',
    ),
)); ?>

<?php echo $form->errorSummary($model); ?>

<div class="panel panel-default">
  <div class="panel-heading">
    <h3 class="panel-title">
        <?php echo ($model->isNewRecord) ? Yii::t('view', 'TAMBAH DATA PROVINSI') : Yii::t('view', 'UBAH DATA PROVINSI'); ?>
    </h3>
  </div>
  <div class="panel-body">
                        <?php 
                        if($model->isNewRecord)
                            echo $form->textFieldGroup($model,'id',array('wrapperHtmlOptions'=>array('class'=>'col-md-8'),'labelOptions'=>array('class'=>'col-md-2'),'widgetOptions'=>array('htmlOptions'=>array('class'=>'form-control form-cascade-control','maxlength'=>30))));
                        else 
                            echo $form->textFieldGroup($model,'id',array('wrapperHtmlOptions'=>array('class'=>'col-md-8'),'labelOptions'=>array('class'=>'col-md-2'),'widgetOptions'=>array('htmlOptions'=>array('class'=>'form-control form-cascade-control','maxlength'=>30,'disabled'=>true))));
                        echo $form->textFieldGroup($model,'nama',array('wrapperHtmlOptions'=>array('class'=>'col-md-8'),'labelOptions'=>array('class'=>'col-md-2'),'widgetOptions'=>array('htmlOptions'=>array('class'=>'form-control form-cascade-control','maxlength'=>30))));
                                echo $form->textFieldGroup($model,'koordinat',array('wrapperHtmlOptions'=>array('class'=>'col-md-8'),'labelOptions'=>array('class'=>'col-md-2'),'widgetOptions'=>array('htmlOptions'=>array('class'=>'form-control form-cascade-control','maxlength'=>50)))); ?>
                        <div class="form-group">
            <div class="col-sm-offset-3 col-sm-9 col-md-offset-2 col-md-8">
                <?php
                $this->widget('booster.widgets.TbButton', array(
                    'buttonType' => 'submit',
                    'context' => 'primary',
                    'label' => Yii::t('app', 'Simpan'),
                ));
                ?>
                <?php
                $this->widget('booster.widgets.TbButton', array(
                    'buttonType' => 'reset',
                    'context' => 'danger',
                    'label' => Yii::t('app', 'Batal'),
                    'htmlOptions' => array('onclick' => 'history.go(-1);'),
                ));
                ?>
            </div>
        </div>
  </div>
</div>
<?php $this->endWidget(); ?>
<?php (Yii::app()->booster) ? Yii::app()->booster->registerYiiCss() : null; ?>
